package com.itheima.stock.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 股票大盘数据详情表
 * @TableName stock_market_index_info
 */
@TableName(value ="stock_market_index_info")
@Data
public class StockMarketIndexInfo implements Serializable {
    /**
     * 主键字段（无业务意义）
     */
    @TableId(value = "id")
    private String id;

    /**
     * 大盘ID
     */
    @TableField(value = "mark_Id")
    private String markId;

    /**
     * 当前时间
     */
    @TableField(value = "cur_time")
    private LocalDateTime curTime;

    /**
     * 指数名称
     */
    @TableField(value = "mark_name")
    private String markName;

    /**
     * 当前点数
     */
    @TableField(value = "cur_point")
    private BigDecimal curPoint;

    /**
     * 当前价格
     */
    @TableField(value = "current_price")
    private BigDecimal currentPrice;

    /**
     * 涨跌率
     */
    @TableField(value = "updown_rate")
    private BigDecimal updownRate;

    /**
     * 成交量（多少手）
     */
    @TableField(value = "trade_account")
    private Long tradeAccount;

    /**
     * 成交额(万元)
     */
    @TableField(value = "trade_volume")
    private Long tradeVolume;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}